import {Injectable, Pipe, PipeTransform} from '@angular/core';

@Pipe({
    name: 'mainIssue'
})
@Injectable()
export class MainIssuePipe implements PipeTransform {
    transform(issues: any[]) {
        return issues.filter(issue => issue.isMain);
    }
}